package com.echo.echovividlive.mapper;

import com.echo.echovividlive.domain.dto.FollowingVideosDTO;
import com.echo.echovividlive.domain.dto.PageQueryDTO;
import com.echo.echovividlive.domain.dto.VideoPageDTO;
import com.echo.echovividlive.domain.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.echo.echovividlive.domain.vo.VideoVO;
import com.github.pagehelper.Page;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiajunjie
 * @since 2024-10-22
 */
@Mapper
public interface VideoMapper extends BaseMapper<Video> {

    Page<VideoVO> pageList(VideoPageDTO pageQueryDTO);

    Page<VideoVO> pageListByUserIds(FollowingVideosDTO followingVideosDTO);

    Page<VideoVO> selectLikedVideos(List<Integer> videoIds);
}
